#include <cellcsp.h>
#include <string>
#include <stdio.h>
#include <csp_debug.h>
#include <vector>

#define EXPECTED_RES (150)

int main(){

	int res;

	char *n150_parallel_processes = "./tasks/150_parallel_processes_task";
	
	CSPConfig conf;

	conf.add_csp_program(n150_parallel_processes ,"150_parallel_processes_task");

	CellCSP_start(conf);

	printf("Running yield_test with file %s\n", n150_parallel_processes);                  

	CSPProcess nested_tasks("150_parallel_processes_task");

	res = nested_tasks.Run();

	CellCSP_end();

	ASSERT( EXPECTED_RES == res);

	printf("150_parallel_processes_task terminated with value %i\n", res);
	
	return 0;
}
